package com.heather.exam.pojo.table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("exam")
public class Exam {
    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    @TableField("name")
    private String name;
    @TableField("start_time")
    private Date startTime;
    @TableField("end_time")
    private Date endTime;
    @TableField("duration")
    private int duration;
    @TableField("total_score")
    private int totalScore;
    @TableField("question_bank_id")
    private int questionBankId;
    @TableField("is_authentication")
    private int isAuthentication;
}
